package com.neusoft.approveserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.neusoft.approveserver.dto.ApprovalAdd;
import com.neusoft.approveserver.dto.ApprovalStatusUpdate;
import com.neusoft.approveserver.dto.ChanceSearchRole;
import com.neusoft.approveserver.dto.RespBean;
import com.neusoft.approveserver.entity.Approval;

/**
 * <p>
 * 机会审批记录表 服务类
 * </p>
 *
 * @author victor
 * @since 2021-07-18
 */
public interface IApprovalService extends IService<Approval> {
    RespBean addChanceApproval(ApprovalAdd  approvalAdd);
    RespBean queryAllApproval();

    RespBean getApprovalByChanceId(Integer chanceId);

    RespBean getLatestApprovalByChanceId(Integer chanceId);

    RespBean updateLatestApprovalByChanceId(ApprovalStatusUpdate approvalStatusUpdate);

    RespBean searchChanceByUserRole(ChanceSearchRole chanceSearchRole);
}
